package com.geek.framework.study.config.microprofile.source;

import com.geek.framework.study.config.servlet.servlet.ServletRequestThreadLocal;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author wyj
 */
public interface HttpServletRequestExtend {

    /**
     * {@link ServletRequestThreadLocal} 类似于spring中的
     * @return http请求
     */
    default HttpServletRequest getHttpServletRequest() {
        return ServletRequestThreadLocal.get();
    }
}
